home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-08-21 | 3.3 KB | 70 lines | [TEXT/R*ch] |
- ********************************************************************
- * *
- * P4/Mac *
- * *
- * Public Domain (plain) Pascal for the Macintosh *
- * *
- * original program by by Steven Pemberton and Martin Daniels *
- * Mac adaption by Ingemar Ragnemalm 1994 *
- * *
- ********************************************************************
-
- This is a Mac port of P4, public domain Pascal compiler and interpreter.
- It was compiled with Think Pascal.
-
- WHO NEEDS IT?
- =============
-
- Not a Mac application programmer, that's for sure. No, P4/Mac could be of interest
- for people in beginner programmer courses. Such courses (sadly) often teach "Vanilla
- Pascal", the nearly useless minimalist Pascal that P4/Mac implements. For those of
- you who do, P4/Mac is a Public Domain alternative to buying a commercial compiler.
- That is, if you don't need all the extensions and libraries anyway.
-
- However, once you want to make real Mac applications, I wholeheartedly recommend
- Think Pascal. Powerful language, fast resulting code, great debugger. Metrowerks
- CodeWarrior can also be an option, once they get their debugger a bit less buggy.
- (Yes, you might move to C or C++ later, but Pascal is the easiest language to
- start with.)
-
- FEATURES:
- =========
-
- You get what you pay for. This is a one evening port of a rather simple Pascal
- system. Even though it now runs on a Mac, note that the result:
-
- • is an INTERPRETER! Don't expect high performance. If you want code that executes
- fast, use Think Pascal instead (or any other compiler, like CodeWarrior and
- MPW compilers etc).
-
- • has NO interface to the Mac toolbox, not even rudimentary drawing calls, so
- all you get is Vanilla Pascal, text-based. NOTHING MORE (until someone dives
- into the code and adds it, of course). Yes, sure it would be nice with some
- turtle graphics, and libraries, and some way to call toolbox routines…
-
- HOW TO USE IT:
- ==============
-
- 1) Write your Vanilla Pascal in a text editor. (TeachText, BBedit, whatever that
- produces plain text files.) Save to disk.
- 2) Drag-and-drop it to Pcom/Mac (or double-click Pcom/Mac, and it will prompt for
- the file). This produces new file, containing the high-level code, the pcode (right?).
- 3) Drag-and-drop the pcode into Pint/Mac to run it (or double-click Pint/Mac, and
- it will prompt for the file).
-
- WHAT COULD BE IMPROVED?
- =======================
-
- Full Think Pascal sources are supplied. These sources are very close to the original
- P4 sources. Feel free to change them for whatever need. Some improvements I have in
- mind include:
- • Integrating Pcom and Pint, so we can run directly from the Pascal source. Who wants
- the intermediary code anyway?
- • Breaking down the file block.p to smaller parts, so we can turn debug on for it.
- • Adding features, making it able to do something more than just plain text.
- • Compiling is made really slow due to the slowness of the write function. Should
- we have some way to supress it?
-
-
- See "Original source & doc" for more info on the original P4.
-